package com.code.util;

public class Main {
    public static void main(String[] args) {
//        对plaintext中的值通过BCrypt生成加密字符；
//        String hashpw = BCrypt.hashpw("123456", BCrypt.gensalt());
//        System.out.println(hashpw);
//        输出为true就对上
        System.out.println(BCrypt.checkpw("123456","$2a$10$4XxXcOFkWZDENUPtmJJqFODN2MIX2Z479NB68APP3K5y5ZFfysixK"));
    }
}
